package com.liang.pcc.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class TreeNode {

    private Long id;

    private String name;

    private Long parentId;

    private Integer type;

    private BigDecimal maxReverseLoadRate;

    private BigDecimal minIndependentMountable;

    private List<TreeNode> children = new ArrayList<>();

    public TreeNode(Long id, String name, Long parentId, Integer type, BigDecimal maxReverseLoadRate, BigDecimal minIndependentMountable) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
        this.type = type;
        this.maxReverseLoadRate = maxReverseLoadRate;
        this.minIndependentMountable = minIndependentMountable;
    }
}